import {createRouter, createWebHashHistory, onBeforeRouteUpdate, RouteRecordRaw} from 'vue-router'
import { useNProgress } from '@vueuse/integrations'
const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'Home',
    redirect:'/index',
    // component: () => import('../views/Home.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

router.beforeEach((to, from, next) => {
  next();
});

router.afterEach((to, from) => {

});
export default router
